<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/taglibs/common/taglibs.jsp"%>

<head>
<title><spring:message code="admin.viewrolehierarchy.title" /></title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link rel="stylesheet" href="<c:url value="/css/styles.css"/>" />
<script src="<c:url value="/javascripts/common.js"/>"></script>
</head>

<body><%@include file="../top_menu.jsp"%>
<%@include file="/WEB-INF/jsp/include/header.jsp"%>
<table width=100%>
	<tr>
		<td><%@include file="/WEB-INF/jsp/menu/admin_role_menu.jsp"%>
		<br />
		</td>
	</tr>
	<tr>
		<td><%@include file="/WEB-INF/jsp/include/messages.jsp"%>
		<br />
		</td>
	</tr>
</table>
<form action="delete_roleHierarchy.htm" method="post">
<table width=70% class="formTable" cellspacing="0">
	<tr class="ui-state-default">
		<c:if test="${roleHierarchyList.pageNumber>1}">
			<td align="left"><a
				href="view_roleHierarchy.htm?pageNo=${roleHierarchyList.pageNumber-1}&sortColumn=${roleHierarchyList.sortColumn}"
				class="mouseEffect"><span class="ui-icon ui-icon-seek-prev"
				style="float: left;"></span><spring:message code="admin.viewrolehierarchy.button.previouspage" /></a></td>
		</c:if>
		<c:if
			test="${roleHierarchyList.pageNumber<roleHierarchyList.pagesAvailable}">
			<td align="right"><a
				href="view_roleHierarchy.htm?pageNo=${roleHierarchyList.pageNumber+1}&sortColumn=${roleHierarchyList.sortColumn}"
				class="mouseEffect"><span class="ui-icon ui-icon-seek-next"
				style="float: right;"></span><spring:message code="admin.viewrolehierarchy.button.nextpage" /></a></td>
		</c:if>
	</tr>
</table>
<table width=70% class="formTable">
	<tr class="formHeader">
		<td colspan="5"><spring:message code="admin.viewrolehierarchy.label.rolehierarchy" /></td>
	</tr>

	<tr>
		<td align="center"><input type="checkbox"
			onclick="ch_select(this.checked)" /></td>
		<th><spring:message code="admin.viewrolehierarchy.label.role1" /></th>
		<th><spring:message code="admin.viewrolehierarchy.label.sign" /></th>
		<th><spring:message code="admin.viewrolehierarchy.label.role2" /></th>
		<th><spring:message code="admin.viewrolehierarchy.label.edit" /></th>
	</tr>

	<tbody>
		<c:if test="${empty roleHierarchyList}">
			<tr>
				<td colspan="6"><spring:message code="admin.viewrolehierarchy.label.norolehierarchywerefound" /></td>
			</tr>
		</c:if>

		<c:forEach var="r" items="${roleHierarchyList.pageItems}"
			varStatus="i">
			<tr class="tr_record">
				<td align="center"><input type="checkbox" class="Role"
					name="ids" value="${r.id}"></input></td>
				<td>${rolesMap[r.role1]}</td>
				<td>${r.sign}</td>
				<td>${rolesMap[r.role2]}</td>
				<td><a href="edit_roleHierarchy.htm?id=${r.id}"><spring:message code="admin.viewrolehierarchy.label.edit" /></a></td>
			</tr>
		</c:forEach>
		<tr>
			<td colspan="6"><input type="submit"
				class='ui-button ui-state-default ui-corner-all' value="<spring:message code="admin.viewrolehierarchy.button.remove" />" />
			<input type="button" class='ui-button ui-state-default ui-corner-all'
				onclick="document.location.href='create_roleHierarchy.htm';"
				value="<spring:message code="admin.viewrolehierarchy.button.addrolehierarchy" />" /></td>
		</tr>
	</tbody>
</table>
<table width=70% class="formTable" cellspacing="0">
	<tr class="ui-state-default">
		<c:if test="${roleHierarchyList.pageNumber>1}">
			<td align="left"><a
				href="view_roleHierarchy.htm?pageNo=${roleHierarchyList.pageNumber-1}&sortColumn=${roleHierarchyList.sortColumn}"
				class="mouseEffect"><span class="ui-icon ui-icon-seek-prev"
				style="float: left;"></span><spring:message code="admin.viewrolehierarchy.button.previouspage" /></a></td>
		</c:if>
		<c:if
			test="${roleHierarchyList.pageNumber<roleHierarchyList.pagesAvailable}">
			<td align="right"><a
				href="view_roleHierarchy.htm?pageNo=${roleHierarchyList.pageNumber+1}&sortColumn=${roleHierarchyList.sortColumn}"
				class="mouseEffect"><span class="ui-icon ui-icon-seek-next"
				style="float: right;"></span><spring:message code="admin.viewrolehierarchy.button.nextpage" /></a></td>
		</c:if>
	</tr>
</table>
</form><%@include file="/WEB-INF/jsp/include/footer.jsp"%>
</body>
</html>